package com.website.view
{
	import com.website.util.Constant;
	import com.website.view.component.BakhTextFiled;
	
	import flash.display.Sprite;

	public class HomePage extends Sprite
	{
		private var _goodDesignTxt:BakhTextFiled;
		private var _goodPerformanceTxt:BakhTextFiled;
		private var _economicTxt:BakhTextFiled;
//		private var _parter:BakhTextFiled;
		public var hRule1:UI_HorizontalRule;
		public var hRule2:UI_HorizontalRule;
		public function HomePage():void
		{
			_goodDesignTxt = new BakhTextFiled("DESIGN",40);
			_goodPerformanceTxt = new BakhTextFiled("     BUILDING \nPREFORMANCE",40);
			_goodPerformanceTxt.multiline = true;
			_goodPerformanceTxt.height = 50;
			_economicTxt = new BakhTextFiled("ECONOMICS",40);
//			_parter = new BakhTextFiled("We are partner of Richard Meier",14);
			_goodPerformanceTxt.y = -20;
//			_goodDesignTxt.x = Constant.gridX;
//			_goodDesignTxt.y = _goodPerformanceTxt.y = _economicTxt.y= Math.round(Constant.gridY + Constant.gridCurrH) / 2 - 50 ;
			_goodPerformanceTxt.x = _goodDesignTxt.x + _goodDesignTxt.width+ 80;
			_economicTxt.x = _goodPerformanceTxt.x + _goodPerformanceTxt.width +80;
			addChild(_goodDesignTxt);
			addChild(_goodPerformanceTxt);
			addChild(_economicTxt);
//			addChild(_parter);
//			_parter.y = 100;
			
			hRule1 = new UI_HorizontalRule();
			hRule1.alpha = 1;
			addChild(hRule1);
			hRule1.y = -100
			hRule1.x = _goodDesignTxt.x + _goodDesignTxt.width+40;
			hRule1.width = 1;
			hRule1.height = 240;//Math.round(8 * Constant.unitW + 7 * Constant.gutterW);;
			
			
			hRule2 = new UI_HorizontalRule();
			hRule2.alpha = 1;
			addChild(hRule2);
			hRule2.x = _goodPerformanceTxt.x + _goodPerformanceTxt.width +40;
			hRule2.y = -100
			hRule2.width = 1;
			hRule2.height = 240;//Math.round(8 * Constant.unitW + 7 * Constant.gutterW);; 
		}
	}
}